package cn.iocoder.yudao.module.ym.controller.admin.worktemp.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 工单模板 Response VO")
@Data
@ExcelIgnoreUnannotated
public class WorkTempRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1834")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "备注", example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "公司ID", example = "17541")
    @ExcelProperty("公司ID")
    private Long deptId;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "模板名", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("模板名")
    private String tempName;

    @Schema(description = "状态", example = "1")
    @ExcelProperty("状态")
    private Integer status;

    @Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "类型", converter = DictConvert.class)
    @DictFormat("ym_work_temp_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer tempType;

    @Schema(description = "字段", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("字段")
    private String tempFiled;

    @Schema(description = "配置", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("配置")
    private String tempConf;

    @Schema(description = "示例照片")
    @ExcelProperty("示例照片")
    private String example;

}
